package jmine.tec.batch.domain;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import jmine.tec.persist.annotation.DiscriminatorComment;
import jmine.tec.persist.annotation.Index;
import bancosys.tec.component.Documentation;

@Entity
@DiscriminatorValue(value = "TEST")
@DiscriminatorComment("TEST")
public class MyConcurrentPhaseInstance extends PhaseInstance<MyConcurrentElement> {

    private MyConcurrentElement element;

    /**
     * @return the element
     */
    @Override
    @ManyToOne
    @JoinColumn(name = "ELE_ID")
    @Documentation("BLA")
    @Index(suffix = "99")
    public MyConcurrentElement getElement() {
        return this.element;
    }

    /**
     * @param element the element to set
     */
    public void setElement(MyConcurrentElement element) {
        this.element = element;
    }

}
